package com.aizhixin.lab.project.course.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

@Data
@Entity(name = "c_project_group")
public class ProjectGroup {
    @Id
    @Column(name = "id")
    private String id;
    @ApiModelProperty(value = "项目ID")
    @Column(name = "project_id")
    private String projectId;
    @ApiModelProperty(value = "小组名称")
    @Column(name = "group_name")
    private String groupName;
    @ApiModelProperty(value = "小组人数")
    @Column(name = "group_num")
    private Integer groupNum;
    @ApiModelProperty(value = "点赞数")
    @Column(name = "like_num")
    private Integer likeNum=0;
    @ApiModelProperty(value = "督促数")
    @Column(name = "urge_num")
    private Integer urgeNum=0;
    @ApiModelProperty(value = "最大人数")
    @Column(name = "max_num")
    private Integer maxNum;
    @ApiModelProperty(value = "创建时间")
    @Column(name = "created_date",insertable = false)
    private Date createdDate;
    @ApiModelProperty(value = "删除标识")
    @Column(name = "delete_flag")
    private Integer deleteFlag=0;
    @ApiModelProperty(value = "通知")
    @Column(name = "notice")
    private String notice;
}
